package com.tebiecloud.order.server.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tebiecloud.order.client.model.entity.Orderr;
import com.tebiecloud.common.mybatis.base.service.IBaseService;
import com.tebiecloud.order.client.model.vo.IncomeList;
import com.tebiecloud.order.client.model.vo.NotArrivedList;
import com.tebiecloud.order.client.model.vo.OrderList;

import java.util.List;

/**
 * 订单 服务类
 * @author tebie
 * @date 2019-09-15
 */
public interface OrderrService extends IBaseService<Orderr> {

    /**
     * 获取最近一笔订单
     * @param userId
     * @return
     */
    Orderr getLastOne(long userId);

    /**
     * 获取未到账余额列表
     * @param userId
     * @param orderIdList
     * @return
     */
    List<NotArrivedList> selectNotArrivedList(Long userId,List<Long> orderIdList);

    /**
     * 获取收益列表
     * @return
     */
    IncomeList selectIncomeList(List<Long> orderIdList,String month,String day);

}
